cmake_minimum_required(VERSION 3.25)
project(network_tool)

set(CMAKE_CXX_STANDARD 14)

include_directories(${PROJECT_SOURCE_DIR}/npcap/Include)
include_directories(${PROJECT_SOURCE_DIR}/npcap/Include/pacp)

include_directories(${PROJECT_SOURCE_DIR}/NetworkProtocolStack)
include_directories(${PROJECT_SOURCE_DIR}/src)

link_directories(${PROJECT_SOURCE_DIR}/npcap/Lib)

add_executable(network_tool main.cpp NetworkProtocolStack/NetAdapter.cpp NetworkProtocolStack/NetAdapter.h NetworkProtocolStack/INetListener.h NetworkProtocolStack/Net_BasicIdl_Interface.h)

target_link_libraries(network_tool Packet.lib wpcap.lib ws2_32)